import request from '@/utils/request'

// 查询parcel列表
export function listEAdvertisements(query) {
  return request({
    url: '/parcel/EAdvertisements/list',
    method: 'get',
    params: query
  })
}

// 查询parcel详细
export function getEAdvertisements(id) {
  return request({
    url: '/parcel/EAdvertisements/' + id,
    method: 'get'
  })
}

// 新增parcel
export function addEAdvertisements(data) {
  return request({
    url: '/parcel/EAdvertisements',
    method: 'post',
    data: data
  })
}

// 修改parcel
export function updateEAdvertisements(data) {
  return request({
    url: '/parcel/EAdvertisements',
    method: 'put',
    data: data
  })
}

// 删除parcel
export function delEAdvertisements(id) {
  return request({
    url: '/parcel/EAdvertisements/' + id,
    method: 'delete'
  })
}
export function updateEAdvertisementsStatus(id) {
  return request({
    url: '/parcel/EAdvertisements/updateStatus/' + id,
    method: 'post'
  })
}
